package com.ai.manager.edu.cms.info.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ai.dao.edu.cms.info.InfoPublishApplicationMapper;
import com.ai.manager.edu.cms.info.InfoPublishApplicationManager;
import com.ai.model.edu.cms.info.InfoPublishApplication;
import com.ai.model.edu.cms.info.dto.InfoPublishApplicationDTO;
import com.ai.model.edu.cms.info.vo.InfoPublishApplicationVO;

@Component("infoPublishApplicationManager")
public class InfoPublishApplicationManagerImpl implements InfoPublishApplicationManager {
	
    @Resource
    private InfoPublishApplicationMapper infoPublishApplicationMapper;


	/**
     * 保存发布资讯申请记录
     */
    public Long insertInfoPublishApplication(InfoPublishApplication record) {
    	return infoPublishApplicationMapper.insertInfoPublishApplication(record);
    }
	
	/**
     * 更新发布资讯申请记录
     */
    public Long updateInfoPublishApplication(InfoPublishApplicationDTO dto) {
    	return infoPublishApplicationMapper.updateInfoPublishApplication(dto);
    }
    
    /**
     * 根据条件查询发布资讯申请记录
     */
    public List<InfoPublishApplicationVO> findInfoPublishApplicationByDto(InfoPublishApplicationDTO dto) {
    	return infoPublishApplicationMapper.findInfoPublishApplicationByDto(dto);
    }
    
    /**
     * 计算满足条件查询发布资讯申请记录数
     */
    public Long countInfoPublishApplicationByDto(InfoPublishApplicationDTO dto) {
    	return infoPublishApplicationMapper.countInfoPublishApplicationByDto(dto);
    }

    /**
     * 根据主键查询记录
     */
    public InfoPublishApplicationVO selectInfoPublishApplicationById(Long id) {
    	return infoPublishApplicationMapper.selectInfoPublishApplicationById(id);
    }


}